OBJS = \
    AboutDialog.o \
    AbstractButton.o \
    AbstractTableView.o \
    AbstractView.o \
    Action.o \
    ActionGroup.o \
    Application.o \
    BoxLayout.o \
    Button.o \
    CheckBox.o \
    Clipboard.o \
    ColorPicker.o \
    ColumnsView.o \
    ComboBox.o \
    Command.o \
    CppLexer.o \
    CppSyntaxHighlighter.o \
    Desktop.o \
    Dialog.o \
    DragOperation.o \
    FilePicker.o \
    FileSystemModel.o \
    FontDatabase.o \
    Frame.o \
    GroupBox.o \
    Icon.o \
    InputBox.o \
    ItemView.o \
    JsonArrayModel.o \
    Label.o \
    Layout.o \
    LazyWidget.o \
    ListView.o \
    Menu.o \
    MenuBar.o \
    MenuItem.o \
    MessageBox.o \
    Model.o \
    ModelSelection.o \
    Painter.o \
    ProgressBar.o \
    RadioButton.o \
    ResizeCorner.o \
    ScrollBar.o \
    ScrollableWidget.o \
    Shortcut.o \
    Slider.o \
    SortingProxyModel.o \
    SpinBox.o \
    Splitter.o \
    StackWidget.o \
    StatusBar.o \
    SyntaxHighlighter.o \
    TabWidget.o \
    TableView.o \
    TextBox.o \
    TextDocument.o \
    TextEditor.o \
    ToolBar.o \
    TreeView.o \
    UndoStack.o \
    Variant.o \
    Widget.o \
    Window.o \
    WindowServerConnection.o

LIBRARY = libgui.a

Application.cpp: ../../Servers/WindowServer/WindowServerEndpoint.h

../../Servers/WindowServer/WindowServerEndpoint.h:
	@flock $(dir $(@)) $(MAKE) -C $(dir $(@))

install:
	mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibGUI/
	cp ./*.h $(SERENITY_BASE_DIR)/Root/usr/include/LibGUI/
	cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/

include ../../Makefile.common
